<!DOCTYPE html>
<html lang="ch">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
</html>
<script>
    var shi =+prompt("时");
    var fen =+prompt("分");
    var miao =+prompt("秒");
    if(miao>60||fen>60||shi>24){
        console.log("错误时间");
    }
    if(miao+1==60){
        miao="00";
        fen=fen++;
        if(fen+1==60){
            fen="00";
            shi=shi++;
            if(shi+1==24){
                shi="00";
            }
        }
        console.log(shi,':',fen,':',miao);
    }

    
</script>